plat/arm/sgi: override weak implementation of plat_arm_get_cpu_pe_count
authorChandni Cherukuri <[email protected]>
Thu, 16 Aug 2018 08:15:17 +0000 (13:45 +0530)
committerChandni Cherukuri <[email protected]>
Tue, 27 Nov 2018 05:02:55 +0000 (10:32 +0530)
To support platforms which are based on multi-threaded CPUs, override
the weak implementation of plat_arm_get_cpu_pe_count function to return
the number of threads supported by the CPU used in the platform.

Change-Id: Ia680773f1277b17e2d3d2414d87943dcece33e89
Signed-off-by: Chandni Cherukuri <[email protected]>
plat/arm/css/sgi/sgi_topology.c

index 3b7a57ad2169c41774a45464c6bb24d676a207f7..e524f11f7dc01f64143b03756b98f06b8e9c088c 100644 (file)
@@ -44,3 +44,11 @@ const uint32_t plat_css_core_pos_to_scmi_dmn_id_map[32] = {
        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,           \
        16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
 };
+
+/******************************************************************************
+ * Return the number of PE's supported by the CPU.
+ *****************************************************************************/
+unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr)
+{
+       return CSS_SGI_MAX_PE_PER_CPU;
+}